package cn.sdormitory.wx.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author : yy
 * @date: 2024/9/29 11:35
 * @description: 微信公众号推送消息表
 */
@TableName("wechat_push_message")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WechatPushMessage {
    @TableId
    private Long id;

    private String templateId;

    private String content;

    private String receiverOpenId;

    private Boolean status;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date sendTime;

    private String backInfo;
}
